<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<%--
  Created by IntelliJ IDEA.
  User: yxs
  Date: 2017/3/31
  Time: 13:24
  To change this template use File | Settings | File Templates.
--%>
<html>
<head>
  <title>考试管理管理</title>
  <meta name="decorator" content="default"/>

</head>
<body>
<ul class="nav nav-tabs">
  <li><a href="${ctx}/teach/teachExam/">考试管理列表</a></li>
  <li class="active"><a href="${ctx}/teach/teachExam/detail?id=${teachExam.id}">考试详情</a></li>
</ul><br/>
<form:form id="inputForm" modelAttribute="teachExam" action="" method="post" class="form-horizontal">
  <form:hidden path="id"/>
  <sys:message content="${message}"/>
  <div class="control-group">
    <label class="control-label">考试科目名称：</label>
    <div class="controls">
      <form:input name="examName" path="examName"  htmlEscape="false" maxlength="64" class="input-xlarge required" readonly="true"/>
      <%--<span class="help-inline"><font color="red">*</font> </span>--%>
    </div>
  </div>
  <div class="control-group">
    <label class="control-label">考试开始时间：</label>
    <%--<div class="controls">--%>
      <%--&lt;%&ndash;<form:input name="beginDate" path="beginDate"  htmlEscape="false" maxlength="64" class="input-medium Wdate required" readonly="true"/>&ndash;%&gt;--%>
        <%--<fmt:formatDate pattern="yyyy-MM-dd HH:mm:ss" value="${teachExam.beginDate}"/>--%>
      <%--&lt;%&ndash;<span class="help-inline"><font color="red">*</font> </span>&ndash;%&gt;--%>
    <%--</div>--%>
    <div class="controls">
    <input name="beginDate" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate required"
           value="<fmt:formatDate value="${teachExam.beginDate}" pattern="yyyy-MM-dd HH:mm:ss"/>"/>
      </div>
   </div>
  <div class="control-group">
    <label class="control-label">考试结束时间：</label>
    <div class="controls">
        <%--<form:input name="beginDate" path="beginDate"  htmlEscape="false" maxlength="64" class="input-medium Wdate required" readonly="true"/>--%>
      <%--<fmt:formatDate pattern="yyyy-MM-dd HH:mm:ss" value="${teachExam.endDate}"/>--%>
      <%--<span class="help-inline"><font color="red">*</font> </span>--%>
          <input name="beginDate" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate required"
                 value="<fmt:formatDate value="${teachExam.endDate}" pattern="yyyy-MM-dd HH:mm:ss"/>"/>
    </div>
  </div>
  <div class="control-group">
    <label class="control-label">答题时间：</label>
    <div class="controls">
      <form:input name="answerTime" path="answerTime" htmlEscape="false" maxlength="64" class="input-xlarge required"
                  readonly="true"/>
    </div>
  </div>
  <div class="control-group">
    <label class="control-label">考试人数：</label>
    <div class="controls">
      <form:input name="" path=""  htmlEscape="false" maxlength="64" class="input-xlarge required" readonly="true"/>
    </div>
  </div>
  <div class="control-group">
    <label class="control-label">可参加考试次数：</label>
    <div class="controls">
      <form:input name="examFrequency" path="examFrequency"  htmlEscape="false" maxlength="64" class="input-xlarge required" readonly="true"/>
    </div>
  </div>
  <div class="control-group">
    <label class="control-label">是否可以查看答题情况：</label>
    <div class="controls">
      <%--<form:input name="ifCheckAnswer"  htmlEscape="false" maxlength="64" class="input-xlarge required" readonly="true"/>--%>
      <c:if test="${teachExam.ifCheckAnswer==1}">
        是
      </c:if>
      <c:if test="${teachExam.ifCheckAnswer==0}">
        否
      </c:if>
      <c:if test="${teachExam.ifCheckAnswer!=0&&teachExam.ifCheckAnswer!=1}">
        未设置
      </c:if>
    </div>
  </div>

  <div class="control-group">
    <label class="control-label">下发试卷：</label>
    <div class="controls">
      <form:input name="" path=""  htmlEscape="false" maxlength="64" class="input-xlarge required" readonly="true"/>
    </div>
  </div>





  <div class="form-actions">
    <%--<shiro:hasPermission name="teach:teachExam:edit"><input id="btnSubmit" class="btn btn-primary" type="submit" value="保 存"/>&nbsp;</shiro:hasPermission>--%>
    <input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)"/>
  </div>
</form:form>
</body>
</html>